package business.report.impl;

import business.report.InvestmentAcceptanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.InvestmentAcceptance;
import report.domain.InvestmentAcceptanceCriteria;
import report.mapper.InvestmentAcceptanceMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "investmentAcceptanceService")
public class InvestmentAcceptanceServiceImpl implements InvestmentAcceptanceService{
    @Autowired
    InvestmentAcceptanceMapper investmentAcceptanceMapper;

    @Override
    public List<InvestmentAcceptance> getInvestmentAcceptance() {
        InvestmentAcceptanceCriteria criteria = new InvestmentAcceptanceCriteria();
        criteria.createCriteria().getAllCriteria();
        return investmentAcceptanceMapper.selectByExample(criteria);
    }
}
